# from bs4 import BeautifulSoup
# soup=BeautifulSoup('<p>Hello</p>','lxml')
# print(soup.p.string)
import requests
from bs4 import  BeautifulSoup
url="http://ccgp-shaanxi.gov.cn/cms-sx/site/shanxi/jdgl/index.html?result=result"
#加入反爬代理机制
headers={
    "user-agent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/92.0.4515.131 Safari/537.36 SLBrowser/8.0.1.4031 SLBChan/25"
}
response=requests.get(url,headers=headers)
response.encoding="utf-8"
#返回状态值
print(response.status_code)
print(response.text)
html=BeautifulSoup(response.text,"lxml")
uls = html.select("body > section > section > div.columnCommonStylesWrap > div > div.columnCommonStylesRight.fr > ul")
print(uls)


